<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<% 
	String name=request.getParameter("goodName");
	double price=Double.parseDouble(request.getParameter("price"));
	int count=Integer.parseInt(request.getParameter("count"));
	String factoryAdd=request.getParameter("factoryAdd");
	%>
	<jsp:useBean id="produce" class="com.jsp.study.bean.Produce2"></jsp:useBean>
	<div>
	<ul>
		<jsp:setProperty property="name" name="produce" value="<%=name %>"/>
		<jsp:setProperty property="price" name="produce" value="<%=price %>" />
		<jsp:setProperty property="count" name="produce" value="<%=count %>"/>
		<jsp:setProperty property="factoryAdd" name="produce" value="<%=factoryAdd %>"/>
		<li>商品名称<jsp:getProperty property="name" name="produce"/></li>
		<li>价格<jsp:getProperty property="price" name="produce"/></li>
		<li>数量<jsp:getProperty property="count" name="produce"/></li>
		<li>厂址<jsp:getProperty property="factoryAdd" name="produce"/></li>
	</ul>
	</div>
</body>
</html>